package com.study.sfd.person.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.study.common.utils.PageUtils;
import com.study.common.utils.Query;

import com.study.sfd.person.dao.DruggistDoctorRelationDao;
import com.study.sfd.person.entity.DruggistDoctorRelationEntity;
import com.study.sfd.person.service.DruggistDoctorRelationService;


@Service("druggistDoctorRelationService")
public class DruggistDoctorRelationServiceImpl extends ServiceImpl<DruggistDoctorRelationDao, DruggistDoctorRelationEntity> implements DruggistDoctorRelationService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<DruggistDoctorRelationEntity> page = this.page(
                new Query<DruggistDoctorRelationEntity>().getPage(params),
                new QueryWrapper<DruggistDoctorRelationEntity>()
        );

        return new PageUtils(page);
    }

}